<template>
	<view class="isSuccess">
		<!-- 成功 -->
		<view v-if="type">
			<view class="content_box my-mgt-30">
				<view class="img_box">
					<image src="https://hxc-pay.oss-cn-shenzhen.aliyuncs.com/WzkmFoncOh_success.png" mode=""></image>
				</view>
				<view class="txt_fir">认证成功</view>
				<view class="txt_two">恭喜你，完成了身份验证</view>
			</view>
			<view class="btn_box" @click="gomoney">去提现</view>
		</view>
		<!-- 失败 -->
		<view v-else>
			<view class="content_box my-mgt-30">
				<view class="img_box">
					<image src="https://hxc-pay.oss-cn-shenzhen.aliyuncs.com/NAPdzfXAbg_fail.png" mode=""></image>
				</view>
				<view class="txt_fir">认证失败</view>
				<view class="txt_two">抱歉，您的身份验证审核未通过</view>
			</view>
			<view class="btn_box" @click="writeInfo">修改信息</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:null,
			};
		},
		onLoad(options) {
			this.type = options.type 
		},
		methods:{
			gomoney(){
				uni.navigateTo({
					url:"/pages/main/childPages/withdrawal"
				})
			},
			writeInfo(){
				uni.navigateTo({
					url:'/pages/my/realNameAuthentication'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.isSuccess{
		width: 100%;
		background: #F7F7F7;
		.content_box{
			width: 100%;
			height: 370rpx;
			background: #FFFFFF;
			.img_box{
				width: 100%;
				height: 120rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				image{
					width: 118rpx;
					height: 118rpx;
				}
			}
			.txt_fir{
				width: 100%;
				height: 80rpx;
				line-height: 80rpx;
				text-align: center;
				font-size: 38rpx;
				font-weight: 500;
				color: #000000;
			}
			.txt_two{
				width: 100%;
				height: 80rpx;
				line-height: 80rpx;
				text-align: center;
				font-size: 28rpx;
				font-weight: 500;
				color: #999999;
			}
		}
		.btn_box{
			width: 690rpx;
			height: 88rpx;
			margin: auto;
			background: #F05329;
			line-height: 88rpx;
			text-align: center;
			border-radius: 10rpx;
			font-size: 38rpx;
			font-weight: 500;
			color: #FFFFFF;
		}
	}
</style>
